package cn.sunlight.wordread.pojo;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: Education
 * @Description: 教育经历
 * @Author: sunlight
 * @Date: 16:31 - 2022/3/7
 * @Version: 1.0
 **/
public class Education implements Serializable {

    private static final long serialVersionUID = -1140593585291477809L;

    private Long eduId;//教育经历id
    private Long resumeId; //简历id
    private Date startTime;//开始时间
    private Date endTime;//结束时间
    private String school; //学校
    private String major; //学习专业
    private String certificate; //获取的学历证书

    public Education() {
    }

    public Education(Long eduId, Long resumeId, Date startTime, Date endTime, String school, String major, String certificate) {
        this.eduId = eduId;
        this.resumeId = resumeId;
        this.startTime = startTime;
        this.endTime = endTime;
        this.school = school;
        this.major = major;
        this.certificate = certificate;
    }

    public Long getEduId() {
        return eduId;
    }

    public void setEduId(Long eduId) {
        this.eduId = eduId;
    }

    public Long getResumeId() {
        return resumeId;
    }

    public void setResumeId(Long resumeId) {
        this.resumeId = resumeId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getCertificate() {
        return certificate;
    }

    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("eduId",getEduId())
                .append("resumeId",getResumeId())
                .append("startTime",getStartTime())
                .append("endTime",getEndTime())
                .append("school",getSchool())
                .append("major",getMajor())
                .append("certificate",getCertificate())
                .toString();
    }
}
